/**
 * Created by shenhai on 15/9/22.
 */


module.exports = function (app) {
    var question = require('../../controllers/mis/question/question-controller');
    app.post('/rest/' + RESTFullServiceVersion + '/mis/question/questionList/:page/:size', question.questionList);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/question/update', question.updateQuestion);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/question/delete', question.deleteQuestion);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/question/setTop', question.setTopQuestion);
    app.get('/rest/' + RESTFullServiceVersion + '/mis/question/exportQuestion', question.exportQuestion);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/question/shield', question.shieldQuestion);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/question/acrossCity', question.acrossCityQuestion);

    app.post('/rest/' + RESTFullServiceVersion + '/mis/question/replyAtList/:page/:size', question.replyAtList);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/question/replyAtUpdate', question.replyAtUpdate);
    /*  宝宝树66小区二次改造    add   gct  20170821   start   */
    app.post('/rest/' + RESTFullServiceVersion + '/mis/question/personalLetterAtList/:page/:size', question.personalLetterAtList);
    /*  宝宝树66小区二次改造    add   gct  20170821   end   */
    app.post('/rest/' + RESTFullServiceVersion + '/mis/question/questionPushList/:page/:size', question.questionPushList);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/question/questionReplyList/:page/:size', question.questionReplyList);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/question/deleteReply', question.deleteReply);

    app.post('/rest/' + RESTFullServiceVersion + '/mis/question/questionPush', question.questionPush);

    var clientService = require('../../controllers/backoffice/backOffice-clientService-controller');
    app.get('/rest/' + RESTFullServiceVersion + '/backoffice/clientService/share/:contentId/:category/:userId', clientService.getSharedFeeds);

    app.post('/rest/' + RESTFullServiceVersion + '/mis/question/questionReportList/:page/:size', question.questionReportList);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/question/deleteQuestionReport', question.deleteQuestionReport);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/question/deleteQuestionReport', question.deleteQuestionReport);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/question/rejectQuestionReport', question.rejectQuestionReport);
};